import type { Directive,DirectiveBinding} from "vue";

export const myColor : Directive= {
    mounted(el: HTMLElement, binding: DirectiveBinding<string>){
        el.style.color=binding.value
    },
    updated(el: HTMLElement, binding: DirectiveBinding<string>){
        el.style.color=binding.value
    }
}